package com.cn.mmd.service;

import com.cn.mmd.mapper.GroupingMapper;
import com.cn.mmd.mapper.StudentGroupingMapper;
import com.cn.mmd.model.Grouping;
import com.cn.mmd.model.StudentGrouping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/7/7 0007.
 */
@Service("studentGroupingService")
public class StudentGroupingServiceImpl implements StudentGroupingService {

    @Autowired
    private StudentGroupingMapper studentGroupingMapper;


    @Autowired
    private GroupingMapper groupingMapper;

    @Override
    public StudentGrouping selectByStuIdCouID(StudentGrouping studentGrouping) {
        return studentGroupingMapper.selectByStuIdCouID(studentGrouping);
    }

    @Override
    public int selectCount(StudentGrouping studentGrouping) {
        return studentGroupingMapper.selectCount(studentGrouping);
    }

    @Override
    public List<StudentGrouping> selectByTeaIdCouID(StudentGrouping studentGrouping) {
        return studentGroupingMapper.selectByTeaIdCouID(studentGrouping);
    }

    @Override
    public int insertSelective(StudentGrouping record) {
        return studentGroupingMapper.insertSelective(record);
    }

    @Override
    public int insertSelective(Grouping record) {
        return groupingMapper.insertSelective(record);
    }


    @Override
    public Grouping selectByAll(Grouping grouping) {
        return groupingMapper.selectByAll(grouping);
    }

    @Override
    public int deleteByAll(Grouping grouping) {
        return groupingMapper.deleteByAll(grouping);
    }

    @Override
    public int deleteByPrimaryKey(Integer groupnameid) {
        return groupingMapper.deleteByPrimaryKey(groupnameid);
    }

    @Override
    public Grouping selectByPrimaryKey(Integer groupnameid) {
        return groupingMapper.selectByPrimaryKey(groupnameid);
    }

    @Override
    public int updateByPrimaryKeySelective(Grouping record) {
        return groupingMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<StudentGrouping> selectByTeaIdCouIDGroName(StudentGrouping studentGrouping) {
        return studentGroupingMapper.selectByTeaIdCouIDGroName(studentGrouping);
    }

    @Override
    public int updateByPrimaryKeySelective(StudentGrouping record) {
        return studentGroupingMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<Grouping> selectByTeaIdCouId(Grouping grouping) {
        return groupingMapper.selectByTeaIdCouId(grouping);
    }

    @Override
    public int deleteByStuId(StudentGrouping studentGrouping) {
        return studentGroupingMapper.deleteByStuId(studentGrouping);
    }

    @Override
    public int deleteByTeaId(String s) {
        return studentGroupingMapper.deleteByTeaId(s);
    }

    @Override
    public int deleteByTeaIdG(String s) {
        return groupingMapper.deleteByTeaIdG(s);
    }

    @Override
    public int deleteByCouId(String s) {
        return studentGroupingMapper.deleteByCouId(s);
    }

    @Override
    public int deleteByCouIdG(String s) {
        return groupingMapper.deleteByTeaIdG(s);
    }

}
